import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
const store = new Vuex.Store({
    state:{
    	userinfo:{}
    },
    mutations:{
		setUser(state,obj){
			state.userinfo = obj
		}
    },
    actions:{
    	changeUser(context,obj){
    		context.commit('setUser',obj)
    	}
    }
    
});

export default store;
